package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {
    @TableId(type = IdType.AUTO)
    private Integer menuId;
    private Integer type;
    private String father;
    private String mname;
    private String icon;
    private String address;
    private String perms;
    private String idx;
    @TableField(exist = false)
    private List<Menu> children = new ArrayList<>();

}
